//
// Created by ✎﹏ℳ๓独赏 ☆独醉 on 2023/4/18.
//
#include <stdio.h>
void input(int score[],int n){
    int i;
    for(i=0;i<n;i++) {
        printf("please input grade of student%d\n", i + 1);
        scanf("%d", &score[i]);
    }
}
int ave(int score[],int n){
    int ave=0,i;
    for(i=0;i<n;i++){
        ave+=score[i];
    }
    return ave/=n;
}
int main(){
    int score[100],n;
    printf("please input num of student\n");
    scanf("%d",&n);
    input(score,n);
    printf("%d", ave(score,n));
}